package com.jjclub.mapper;

import com.jjclub.entity.Test;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;
import java.util.List;

/**
 * @Classname TestMapper
 * @Description TODO
 * @Date 2019/10/11 11:37
 * @Created by jq
 */
@Mapper
public interface TestMapper {

    @Select("select * from test where id = #{id}")
    public Test getMessageById(@Param("id")String messageId)throws SQLException;

    public List<Test> getListTest();
}
